<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


$conexion = mysql_connect("localhost" , "root" , "a123456.");

mysql_select_db("bingo",$conexion);

$sql = "INSERT INTO eventos (code, name, string) VALUES ('".$_POST['eventCode']."','".$_POST['eventName']."','".$_POST['eventString']."')";

$result = mysql_query($sql);

if (! $result){

	echo mysql_error();

	exit();

}else {
	echo 'DATOS INSERTADOS CORRECTAMENTE';

}



?>
